package com.cjm.one.goods.mapper;


import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.cjm.one.model.coupon.entity.CouponRange;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
* @author 29289
* @description 针对表【coupon_range(优惠券范围表)】的数据库操作Mapper
* @createDate 2024-09-05 15:57:57
* @Entity com.one.coupon.entity.CouponRange
*/
@Mapper
public interface CouponRangeMapper extends BaseMapper<CouponRange> {
    @Select("SELECT * FROM coupon_range WHERE coupon_id = #{couponId}")
    List<CouponRange> findByCouponId(Long couponId);
}




